package com.ql.jconsole;

import java.util.ArrayList;
import java.util.List;

/**
 * @author: linql
 * @date: 2018/1/22
 * @time: 下午10:25
 * @use: 测试jconsole性能监控工具
 */
public class JConsoleTest {


    public JConsoleTest(){
        byte[] bytes = new byte[128 * 1024];
    }

    public static void main(String[] args) {
        try {
            Thread.sleep(5000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        fill(1000);
    }

    private static void fill(int n) {

        List<JConsoleTest> jConsoleTestList = new ArrayList<JConsoleTest>();

       while (true){
           try {
               Thread.sleep(100);
               jConsoleTestList.add(new JConsoleTest());
           } catch (InterruptedException e) {
               e.printStackTrace();
           }
       }
    }
}
